import math
if __name__ == '__main__':
    bian1 = int(input())
    bian2 = int(input())
    max_num = max(bian1, bian2)
    min_num = min(bian1, bian2)
    xie = math.sqrt(max_num**2 + min_num**2)
    zhi = math.sqrt(max_num**2 - min_num**2)
    if xie.is_integer():
        print("c")
    elif zhi.is_integer():
        if zhi<min_num:
            print("a")
        else:
            print("b")
    else:
        print("non")